<?php


namespace app\admin\model;


use think\Db;

class ApprovalLogModel extends BaseModel
{
    protected $name='approval_log';

    protected $autoWriteTimestamp = true;
    protected $updateTime = false;
    protected $createTime = 'apply_time';

    public static function addLog($approval_id,$content='',$status=''){
        $approval_log=[
            'approval_id'=>$approval_id,
            'add_user_name'=>cmf_get_admin_name(),
            'apply_time'=>time(),
            'content'=>$content,
            'status'=>$status,
        ];
       self::insertGetId($approval_log);
    }
}